package com.tree.backend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 信号数据采集表
 * </p>
 *
 * @author tree
 * @since 2025-10-24
 */
@Getter
@Setter
@ToString
@TableName("signal_collection")
public class SignalCollection implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 采集记录ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 设备ID
     */
    private Integer deviceId;

    /**
     * 信号强度(dBm)
     */
    private BigDecimal signalStrength;

    /**
     * 信噪比
     */
    private BigDecimal snrRatio;

    /**
     * 带宽(MHz)
     */
    private Integer bandwidth;

    /**
     * 延迟(ms)
     */
    private Integer latency;

    /**
     * 丢包率(%)
     */
    private BigDecimal packetLoss;

    /**
     * 采集时间
     */
    private LocalDateTime collectTime;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;
}
